/**
 * @Description:
 * @Author bianpengfei
 * @create 2021/6/24 13:49
 */
import React, { PureComponent } from 'react'
import PropTypes from 'prop-types'
import { withRouter } from 'react-router-dom'

class ListItem extends PureComponent {
  constructor(props) {
    super(props)
    this.state = {}

    console.log('使用withRouter', this.props)
  }

  render() {
    return (
      <div>
        <div style={{ color: 'red' }}>withRouter 高阶组件</div>
      </div>
    )
  }
}

ListItem.propTypes = {}

export default withRouter(ListItem)
